#!/usr/bin/env python 

import re
import regex

hand_history = open('../hh/ps-hh-sample.txt', 'r')
lines = hand_history.readlines()

def process_a(data):
	print data

def process_b(data):
	print data


regex_to_process = {
	regex.new_round: process_a,
	regex.table_info: process_b,
}

for hh_line in lines:	
    for regex,process in regex_to_process.iteritems():
		m = re.match(regex, hh_line)
		if m:
			print m.groupdict()
			process(hh_line)

